package com.ygswglxt.leave.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("leave_balance")
public class LeaveBalance {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    @TableField(exist = false)
    private String userName; // 员工名称（联表查询字段，不在数据库表中）
    private BigDecimal annualBalance; // 年假余额
    private BigDecimal sickBalance; // 病假余额
    private BigDecimal personalBalance; // 事假余额
    private BigDecimal adjustmentBalance; // 调休余额
    private Date createTime;
    private Date updateTime;
}

